package cn.getech.data.development.model.dto.real;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import net.sf.cglib.core.Local;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author luoxi
 * @create 2021/1/18 12:33
 */
@Data
public class RealApproveReturnDTO implements Serializable {
    private static final long serialVersionUID = 7453974868210905355L;

    @ApiModelProperty(value = "当前页", name = "current")
    private Integer id;

    @ApiModelProperty(value = "数据库名", name = "dbName,")
    private String dbName;

    @ApiModelProperty(value = "表名", name = "tableName,")
    private String tableName;

    @ApiModelProperty(value = "创建人Id", name = "createUser")
    private Integer createUser;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "有效天数", name = "effectiveDay")
    private Integer effectiveDay;

    @ApiModelProperty(value = "申请人id", name = "applyUserId")
    private Integer applyUserId;

    @ApiModelProperty(value = "授权人id", name = "approveUserId")
    private Integer approveUserId;

    @ApiModelProperty(value = "有效期(时间)", name = "effectiveDeadline")
    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime effectiveDeadline;

    @ApiModelProperty(value = "回收理由", name = "rollbackReason")
    private String rollbackReason;

    @ApiModelProperty(value = "申请id", name = "applyId")
    private Integer applyId;

    @ApiModelProperty(value = "申请状态", name = "applyStatus")
    private Integer applyStatus;

    @ApiModelProperty(value = "当前页", name = "current")
    private Long current;

    @ApiModelProperty(value = "每页大小", name = "size")
    private Long size;

    @ApiModelProperty(value = "创建人名称", name = "createPerName")
    private String createPerName;

    @ApiModelProperty(value = "申请人名称", name = "applyUser")
    private String applyUser;

    @ApiModelProperty(value = "授权人名称", name = "approveUser")
    private String approveUser;

    @ApiModelProperty(value = "授权人名称", name = "ApproveUse")
    private String projectName;

    @ApiModelProperty(value = "表描述", name = "tableDesc")
    private String tableDesc;

}
